//
//  WJKeyChainStoreController.m
//  JerryIos
//
//  Created by 王军 on 2018/2/10.
//  Copyright © 2018年 王军. All rights reserved.
//

#import "WJKeyChainStoreController.h"
#import "WJKeyChainUtils.h"

@interface WJKeyChainStoreController ()


@end

@implementation WJKeyChainStoreController

- (void)viewDidLoad {
    [super viewDidLoad];
}

- (IBAction)savePwd:(id)sender {
    NSString *pwdStr = self.pwdInputView.text;
    [[WJKeyChainUtils getInstance] save:@"pwd" value:pwdStr];
}

- (IBAction)queryPwd:(id)sender {
    NSString *value = [[WJKeyChainUtils getInstance] query:@"pwd"];
    self.pwdResultView.text = value;
}

- (void)viewDidDisappear:(BOOL)animated {
//    [[WJKeyChainUtils getInstance] remove:@"pwd"];
}

@end
